<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板语法</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        {{name}}
        <div v-text="message"></div>
        <div v-html="htmlText" :title="name"></div>
    </div>
    <script>
        var vm = new Vue({
            el: "#app",
            data: {
                name: "Dell",
                message: "我是一条信息",
                htmlText: "<p>我是一个HTML段落</p>"
            }
        })
    </script>
</body>
</html>